package domain

import "time"

type  RedPack struct {
	ID        int64 `json:"id" example:"1" xorm:"'id' pk autoincr notnull"`
	CreatedAt time.Time `json:"createdAt" example:"2019-04-12"`
	UpdatedAt time.Time `json:"updatedAt" example:"2019-04-12"`
	DeletedAt *time.Time `json:"deletedAt" example:"2019-04-12"`
	AccountId int64 `json:"accountId"`
	Profile Profile `json:"profile" gorm:"ForeignKey:AccountId;ASSOCIATION_FOREIGNKEY:AccountId"`
	Fee float64 `json:"fee" example:"200"`
	Amount float64 `json:"amount" example:"12"`
	TargetId  string `json:"targetId" example:"15108280907"`
	Category  int `json:"category" example:"100"`
	Message  string `json:"message" example:"来吧，我的宝藏全都给你,格尔*D*罗杰"`
	Latitude float64 `json:"latitude" example:"30.753704"`
	Longitude float64 `json:"longitude" example:"103.939791"`
	Address string `json:"address" example:"成都市，青羊区，天府广场"`
}



type  RedPackReq struct {
	ID        int64 `json:"id" example:"1" xorm:"'id' pk autoincr notnull"`
	AccountId int64 `json:"accountId"`
	Fee float64 `json:"fee" example:"200"`
	Amount float64 `json:"amount" example:"12"`
	TargetId  string `json:"targetId" example:"15108280907"`
	Category  int `json:"rule" example:"100"`
	Latitude float64 `json:"latitude" example:"30.753704"`
	Longitude float64 `json:"longitude" example:"103.939791"`
	Message  string `json:"message" example:"来吧，我的宝藏全都给你,格尔*D*罗杰"`
	Address string `json:"address" example:"成都市，青羊区，天府广场"`
}
